import { Type } from 'class-transformer'
import { IsArray, IsInt, IsNotEmpty } from 'class-validator'
import { ApiProperty } from '@nestjs/swagger'

export class AddStudentsDto {
  @ApiProperty({ description: '学生ID列表', type: [Number] })
  @IsArray()
  @IsInt({ each: true })
  @IsNotEmpty()
  @Type(() => Number)
  studentIds: number[]
} 